import { EVENT } from "./enums";
import kingsInstance from "./instance";
import { changeEnv } from "./config";
window.CHAIN_TYPE = null;
var globalChangeChainType = function(chainType) {
    kingsInstance.emit(EVENT.changeChainType, chainType);
};
window.changeChainType = globalChangeChainType;
window.TEST_NET = false;
window.changeNetWork = function(testnet) {
    kingsInstance.emit(EVENT.networkChanged, testnet);
};
var globalChangeEnv = function(newisDevChain) {
    changeEnv(newisDevChain);
    kingsInstance.emit(EVENT.envChange);
};
window.changeEnv = globalChangeEnv;
export { globalChangeEnv, globalChangeChainType };

 //# sourceMappingURL=globalFun.js.map